/*
 * @Company: TWL
 * @Author: xue jian
 * @Email: xuejian@kanzhun.com
 * @Date: 2020-02-12 11:47:42
 */
#include "write_bin.h"
int main(int argc, char** argv) {
    if (argc != 4) {
        std::cout<<"The put in should include hash, key and bin file path! "<<std::endl;
        return 0;
    }
    std::string hash(argv[1]);
    std::string key(argv[2]);
    std::string path(argv[3]);
    try {
        write_bin(hash, key, path);
    } catch (...) {
        std::cout<<"write the bin file failed!"<<std::endl;
        return 0;
    }
    return 1;
}